freq
{questionr}
Generate frequency tables
is.na
{base}
Check if a value is NA/elements of vector are NA
min
{base}
Get minimum of a vector
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
range
{base}
Return range of values
desc
{dplyr}
Arrange in descending order
ordered
{dplyr}
Create an ordered factor
max
{base}
Get maximum of a vector
ifelse
{base}
Return a or b depending on the value of test
head
{utils}
Show first 5 rows of a data frame
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
setwd
{base}
Set Working Directory
ungroup
{dplyr}
Resolve grouping created with “group_by”
sd
{stats}
Get standard deviation of a vector
levels
{base}
Get levels of a factor
c
{base}
Combine values/vectors into a vector
rbind
{base}
Combine R objects by rows
str
{utils}
Get the structure of an R object
attach
{base}
Attach Set of R Objects to Search Path
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
mutate
{dplyr}
Modify/create a column in a data frame
slice
{dplyr}
Subset rows using their positions
pie
{graphics}
Creates a basic pie chart
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
filter
{dplyr}
Filter out rows of a data frame according to logical vector
cbind
{base}
Combine R objects by columns
hist
{graphics}
Plot a simple histogram
install.packages
{base}
Install R package
plot
{graphics}
Generic function from base R to produce a plot
mean
{base}
Get mean of a vector
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
geom_bar
{GGPLOT2}
Generates a bar chart
seq
{base}
Create a sequence
median
{stats}
Get median of a vector
select
{dplyr}
Select columns from a tibble/data frame
summary
{base}
Obtain summary statistics or detailed regression output
ggplot
{GGPLOT2}
Create a ggplot graph
labs
{GGPLOT2}
Customise labels in GGPLOT2
factor
{base}
Create a factor
sum
{base}
Get sum of numeric values or a vector
lprop
{questionr}
Display row percentages of a two-way frequency table
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
recode
{dplyr}
Recode a variable
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
geom_histogram
{GGPLOT2}
Generates a histogram
class
{base}
Retrieve class of an R object
read_excel
{readxl}
Read an Excel file
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
cut
{base}
Convert Numeric to Factor
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
library
{base}
Load an R package
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
names
{base}
Retrieve names of a list/vector
boxplot
{graphics}
Plot a simple box plot
read.spss
{foreign}
Read a .sav file (SPSS data)
rm
{base}
Remove objects
var
{stats}
Calculate variance
The end!